﻿using System;

namespace Mbs.ComponentModel.Container
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
    public class ComponentAttribute:Attribute
    {
        public ComponentAttribute()
        {
            IsLazyInit = true;
            LifestyleType = Mbs.ComponentModel.Container.Lifestyle.LifestyleType.Singleton;
        }

        public string Id { get; set; }
        public Type Service { get; set; }
        public bool IsLazyInit { get; set; }
        public string LifestyleType { get; set; }
        public string Activator { get; set; }
    }

}
